
import { Entity, NgField, NgObject, EntityList, NgList, NgDynamic, DynamicEntity, NgEntity } from '@farris/devkit';

@NgEntity({
    originalCode: "ylfx",
    nodeCode: "ylfxs",
    allowEmpty: true
})
export class YlfxEntity extends Entity {

    @NgField({
        originalDataField: 'ID',
        dataField: 'id',
        primary: true,
        originalDataFieldType: 'String',
        initValue: '',
        path: 'ID',

        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'maxLength',
                constraints: [36],
                message: '最大长度为36',
            }
        ]
    })
    id: string;

    @NgField({
        originalDataField: 'ParentID',
        dataField: 'parentID',
        originalDataFieldType: 'String',
        initValue: '',
        path: 'ParentID',

        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'maxLength',
                constraints: [36],
                message: '最大长度为36',
            }
        ]
    })
    parentID: string;

    @NgField({
        originalDataField: 'mdyye',
        dataField: 'mdyye',
        originalDataFieldType: 'String',
        initValue: '',
        path: 'mdyye',

        validRules: [
            {
                type: 'maxLength',
                constraints: [36],
                message: '最大长度为36',
            }
        ]
    })
    mdyye: string;

    @NgField({
        originalDataField: 'mdcb',
        dataField: 'mdcb',
        originalDataFieldType: 'String',
        initValue: '',
        path: 'mdcb',

        validRules: [
            {
                type: 'maxLength',
                constraints: [36],
                message: '最大长度为36',
            }
        ]
    })
    mdcb: string;

    @NgField({
        originalDataField: 'mdlr',
        dataField: 'mdlr',
        originalDataFieldType: 'String',
        initValue: '',
        path: 'mdlr',

        validRules: [
            {
                type: 'maxLength',
                constraints: [36],
                message: '最大长度为36',
            }
        ]
    })
    mdlr: string;

    @NgField({
        originalDataField: 'mdylr',
        dataField: 'mdylr',
        originalDataFieldType: 'String',
        initValue: '',
        path: 'mdylr',

        validRules: [
            {
                type: 'maxLength',
                constraints: [36],
                message: '最大长度为36',
            }
        ]
    })
    mdylr: string;

    @NgField({
        originalDataField: 'mdnlr',
        dataField: 'mdnlr',
        originalDataFieldType: 'String',
        initValue: '',
        path: 'mdnlr',

        validRules: [
            {
                type: 'maxLength',
                constraints: [36],
                message: '最大长度为36',
            }
        ]
    })
    mdnlr: string;

}